import threading
class mythread(threading.Thread):
    def __init__(self, threadname):
        threading.Thread.__init__(self, name=threadname)

#t1= mythread('t1')
#print t1.getName(), t1.isDaemon()
#t1.setDaemon(True)
#print t1.getName(), t1.isDaemon()
#t1.start()
#print 'main ehread exit'


                 
